#!/bin/sh

appname="picPlayer"
dst="appPicPlayer"
liblist=$(ldd $appname | awk '{ if (match($3, "/")){printf("%s "), $3}}')
if [ ! -d $dst ];then
  mkdir $dst
fi

mkdir -p $dst/lib
mkdir -p $dst/bin

cp $liblist       $dst/lib -r
cp $appname       $dst/bin 
cp etc            $dst -r
cp ${appname}.sh  $dst 
cp sharedlib/*    $dst/lib -r
cp README.md      $dst
